package com.om.calculator;

public abstract class BinaryOperator {

    public void execute(OperandStack stack) {
        int rightOperand = stack.pop();
        int leftOperand = stack.pop();
        int sum = leftOperand - rightOperand;
        stack.push(sum);
    }
}
